package ${entity.packageName}.po;

import com.gonsin.venus.base.interfaces.valid.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * ${entity.entityLabel}数据模型 用于前端传输数据包后台服务器
 */
@ApiModel("${entity.entityLabel}数据")
@Data
@ToString
public class ${entity.entityName}Po implements Serializable {

    <#list entity.fieldList as f><#if !f.nullable>@NotBlank(message = "必须输入${f.name}", group = Valid.Group.Add.class)
    </#if>@ApiModelProperty(value = "${f.comment}"<#if !f.nullable>, required = true</#if>)
    private ${f.type} ${f.name};
    
    </#list>

}
